package com.example.drug.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author rlj
 * @Date 2021/4/12 11:35
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties("thread.parameter")
public class ThreadParameter {
    /**
     * 核心线程数
     */
    private Integer coreSize;

    /**
     * 最大线程数
     */
    private Integer maxSize;

    /**
     * 持续时间
     */
    private Long keepAliveTime;
}
